package service

import (
	pb "goods/api/goods/v1"
	"goods/internal/biz"

	"github.com/go-kratos/kratos/v2/log"
	"github.com/google/wire"
)

// ProviderSet is service providers.
var ProviderSet = wire.NewSet(NewGoodsService)

type GoodsService struct {
	pb.UnimplementedGoodsServiceServer
	log *log.Helper
	article *biz.ArticleUsecase
	product *biz.ProductUsecase
}


func NewGoodsService(product *biz.ProductUsecase, logger log.Logger) *GoodsService {
	return &GoodsService{
		product: product,
		log:     log.NewHelper(logger),
	}
}